export const useModalStatus = () => {
  const modalVisible = ref(false)
  const modalTitle = ref('')
  const showModal = () => {
    modalVisible.value = true
  }
  const hideModal = () => {
    modalVisible.value = false
  }

  const setModalTitle = (title: string) => {
    modalTitle.value = title
  }

  return { modalVisible, modalTitle, showModal, hideModal, setModalTitle }
}
